package javaFeature;

public class User {
    private String username;
    private String password;
    private String email;

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public User(String username, String password, String email) {
        this.username = username;
        this.password = password;
        this.email = email;
    }

    void show() {
        System.out.println("username:" + username + "  " + "password:" + password + "  " + "email:" + email);
    }

    public static void main(String[] args) {
        User user1 = new User("xiaoming", "123456");
        User user2 = new User("xiaohong", "23456", "3106524586@qq.com");
        user1.show();
        user2.show();
    }
}